<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户管理</title>
#include("../jscss.html")
<script type="text/javascript">
	$(function(){
		//查询结果表格
		var grid = $('#data-grid');
		grid.datagrid({
			border:false,
			columns:[[
			    {field:'ck',checkbox:true},
			    {field:'network',title:'邮政网点',width:180},
				{field:'pack',title:'封包',width:60,formatter:function(val,row){
					return '<a href="modify?userinfo.id='+row.id+'">'+val+'</a>'
				}},
				{field:'receive',title:'接收',width:60,sortable : true},
				{field:'accept',title:'验收',width:60,sortable : true},
				{field:'abnormal',title:'异常',width:60,sortable : true},
				{field:'explain',title:'异常说明',width:200,sortable : true},
			]],
			fit:true,
			pagination:true,
			rownumbers:true,
			url:'monitorList',
			pageList:[10,20,30,50,100],
			pageSize:20,
			toolbar:'#tb',
			singleSelect:true,
			nowrap:false,
			striped:true,
		});
		
		$('#search').click(function(){
			var jsonParam = $('#search-form').serializeJsonNotNull();
			grid.datagrid('load', jsonParam);
		});

	});
	$(function(){
		   var curr_time = new Date();
		   var strDate = curr_time.getFullYear()+"-";
		   strDate += curr_time.getMonth()+1+"-";
		   strDate += curr_time.getDate()+"-";
		   strDate += curr_time.getHours()+":";
		   strDate += curr_time.getMinutes()+":";
		   strDate += curr_time.getSeconds();
		   $("#date").datebox("setValue", strDate); 
		  });
	
</script>
</head>
<body>
	<table id="data-grid">
	</table>
	<div id="tb" style="padding: 5px; height: auto">
		<div>
			<form id="search-form">
			网点名称: <input class="easyui-textbox" type="text" name="network" style="width: 120px">
			日期: <input  id="date" class="easyui-datebox" type="text" name="searchDate" style="width: 120px">
			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search" id="search">查询</a>
			<a href="export" class="easyui-linkbutton" iconCls="icon-print" id="search">导出excel</a>
			</form>
		</div>
	</div>
</body>
</html>